﻿<UserControl x:Class="SMS.Controls.SMSReportControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
             xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <TextBlock Text="From" HorizontalAlignment="Left"
                       Width="40" />
            <sdk:DatePicker SelectedDate="{Binding Path=FromDate, Mode=TwoWay}"
                            Width="150"
                            HorizontalAlignment="Right" />

            <TextBlock Text="To"
                       Grid.Row="1"
                       HorizontalAlignment="Left"
                       Width="40" />
            <sdk:DatePicker Grid.Row="1"
                            Width="150" HorizontalAlignment="Right"
                            SelectedDate="{Binding Path=EndDate, Mode=TwoWay}" />
            <TextBlock Text="By"
                       HorizontalAlignment="Left"
                       Width="40" Grid.Row="2"/>
            <ComboBox  Width="150"
                       Grid.Row="2" HorizontalAlignment="Right"
                       ItemsSource="{Binding SearchOptionList}"
                       SelectedItem="{Binding SelectedSearchOption, Mode=TwoWay}"></ComboBox>
            <Button Content="Show Report"
                    Grid.Row="3"
                    HorizontalAlignment="Left"
                    Command="{Binding Path=SearchCommand}"
                    Width="100" />
            
        </Grid>
    </Grid>
</UserControl>
